2.2 Precedence and Subexpressions
The precedence of operators in Myron is given in Figure 2.4. The table also shows where primaries and unary operators fit into the precedence scheme.
Category | Operators |
Primary constructs §2.3, §2.10.1 | variables, numbers, |
bracketing operators, other primaries | |
Postfix unary operators §2.4.3 §2.10.2 | !, °, ɓ, ℓ, , |
C, D, G, J, L, N, P, T, -1, | |
ⅈ, ɽ, ʋ, ƈ, ʈ, ʂ, ɱ, ɗ, | |
parameters, indexes | |
Prefix unary operators §2.4 | -, +, ¬, ±, #, ∠, √, ∇, ↓, ↑ |
log, ln, root, trigonometrics | |
infix binary and n-ary operators | ^, √, ∧, ↓, ↑ |
§2.4.1 §2.10.3 | ·, ×, /, ÷, //, ¦, ⊕, ⋂, ∘ |
+, -, ±, ∓, ∨, ∪, ∖, △ | |
∈, ∉, ⊆, ⊂, ⊈, ⊄, ‖, ‖‖ | |
=, ≠, <, ≤, >;, ≥, ≈ | |
≡, ⇒ | |
ternary operator §2.8.2 | ?: |
definition §2.5 | → |